<style>
	#cpform thead { background: #eee;}
	.container .floattop{padding-bottom: 0;}
	#cpform th { text-align: center; border-right: 1px solid #ddd;}
	#cpform td { border-right: 1px solid #ddd; }
	.none { display: none;}
	.top { margin-bottom: 0; padding-bottom: 0; }
	.top a { text-decoration: none;display: inline-block; margin: 0; background:#03a9f4;padding: 10px;font-weight: 400; color: #fff;border-right: 1px solid #fff;}
	.top .a, .top a:hover {background: #009688;color: #fff; }
	table.tb { margin-top: 0; }
	.fuyan { width: 80%; }
	.input-80px{display: inline-block;width: 80px;}
	#cpform textarea { width: 95%; }
	.pipe{display: block;margin:auto 5px; color: #858585;}
	[data-wenk]{position:relative}[data-wenk]:after{position:absolute;font-size:13px;border-radius:.4rem;content:attr(data-wenk);padding:12.8px;padding:.8rem;background-color:rgba(17,17,17,.8);box-shadow:0 0 14px rgba(0,0,0,.1);color:#fff;line-height:20px;line-height:1.25rem;text-align:left;z-index:1;pointer-events:none;display:block;opacity:0;visibility:hidden;-webkit-transition:all .3s;transition:all .3s;bottom:100%;left:50%;-webkit-transform:translate(-50%,10px);transform:translate(-50%,10px);white-space:pre;width:auto}[data-wenk]:after{opacity:0}[data-wenk]:hover{overflow:visible}[data-wenk]:hover:after{display:block;opacity:1;visibility:visible;-webkit-transform:translate(-50%,-10px);transform:translate(-50%,-10px)}[data-wenk].wenk--bottom,[data-wenk][data-wenk-pos="bottom"]{}[data-wenk].wenk--bottom:after,[data-wenk][data-wenk-pos="bottom"]:after{bottom:auto;top:100%;left:50%;-webkit-transform:translate(-50%,-10px);transform:translate(-50%,-10px)}[data-wenk].wenk--bottom:hover,[data-wenk][data-wenk-pos="bottom"]:hover{}[data-wenk].wenk--bottom:hover:after,[data-wenk][data-wenk-pos="bottom"]:hover:after{-webkit-transform:translate(-50%,10px);transform:translate(-50%,10px)}[data-wenk].wenk--left,[data-wenk][data-wenk-pos="left"]{}[data-wenk].wenk--left:after,[data-wenk][data-wenk-pos="left"]:after{bottom:auto;left:auto;top:50%;right:100%;-webkit-transform:translate(10px,-50%);transform:translate(10px,-50%)}[data-wenk].wenk--left:hover,[data-wenk][data-wenk-pos="left"]:hover{}[data-wenk].wenk--left:hover:after,[data-wenk][data-wenk-pos="left"]:hover:after{-webkit-transform:translate(-10px,-50%);transform:translate(-10px,-50%)}[data-wenk].wenk--right,[data-wenk][data-wenk-pos="right"]{}[data-wenk].wenk--right:after,[data-wenk][data-wenk-pos="right"]:after{bottom:auto;top:50%;left:100%;-webkit-transform:translate(-10px,-50%);transform:translate(-10px,-50%)}[data-wenk].wenk--right:hover,[data-wenk][data-wenk-pos="right"]:hover{}[data-wenk].wenk--right:hover:after,[data-wenk][data-wenk-pos="right"]:hover:after{-webkit-transform:translate(10px,-50%);transform:translate(10px,-50%)}[data-wenk][data-wenk-length="small"]:after,[data-wenk].wenk-length--small:after{white-space:normal;width:80px}[data-wenk][data-wenk-length="medium"]:after,[data-wenk].wenk-length--medium:after{white-space:normal;width:150px}[data-wenk][data-wenk-length="large"]:after,[data-wenk].wenk-length--large:after{white-space:normal;width:260px}[data-wenk][data-wenk-length="fit"]:after,[data-wenk].wenk-length--fit:after{white-space:normal;width:100%}[data-wenk][data-wenk-align="right"]:after,[data-wenk].wenk-align--right:after{text-align:right}[data-wenk][data-wenk-align="center"]:after,[data-wenk].wenk-align--center:after{text-align:center}[data-wenk=""]:after{visibility:hidden!important}
</style>
<script>
	var jameson_admin = {
		changeCategory:function(e){
			var parent_id = parseInt(e.value);
			var book_id = e.getAttribute('data-bid');
			jameson_admin.editclass(parent_id,book_id);
		},
		editclass:function(pid,book_id){
			var dom = $('selectcategory_'+book_id).parentNode.getElementsByTagName('select');
			for(var i=1,len=dom.length;i<len;i++){
				if(dom[i].id != 'selectcategory_'+book_id+'_'+pid+'_menu'){
					dom[i].classList.add('none');
				}else{
					dom[i].classList.remove('none');
				}
			}
		}
	};
</script>
{if $_GET['authortype']=='shenhe'}
<h3>{lang jameson_read:tongguohouyongyou}</h3>
{elseif $_GET['authortype']=='list'}
<h3>{lang jameson_read:shanchutishi}</h3>
{elseif $_GET['authortype']=='fuli'}
<h3>{lang jameson_read:fulitianxie}</h3>
{/if}
<div class="top">
	<a {if !isset($_GET['authortype'])}class="a"{/if} href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=index">{lang jameson_read:quanxianguanli}</a>
	<a {if $_GET['authortype']=='shenhe'}class="a"{/if} href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=index&authortype=shenhe">{lang jameson_read:daishenliebiao}</a>
	<a {if $_GET['authortype']=='list'}class="a"{/if} href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=index&authortype=list">{lang jameson_read:yishenheliebiao}</a>
	<a {if $_GET['authortype']=='fuli'}class="a"{/if} href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=index&authortype=fuli">{lang jameson_read:zuozhefuli}</a>
</div>
{if !isset($_GET['authortype'])}
<form id="cpform" action="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=post" autocomplete="off" method="post" name="cpform">
<table class="tb tb2">
<thead class="">
	<tr class="header ">
		<th>{lang jameson_read:xuhao}</th>
		<th>{lang jameson_read:yonghu}</th>
		<th>{lang jameson_read:zaijiatushu}</th>
		<th>{lang jameson_read:xiaoshoushouru}/{$_G['jameson_read']['trametitle']}</th>
		<th>{lang jameson_read:tushu}{lang jameson_read:fabuzhuangtai}</th>
		<th>{lang jameson_read:yunxushanchutushu}</th>
		<th>{lang jameson_read:shifouyunxubianjizhangjie}</th>
		<th>{lang jameson_read:shezhishoujia}/{$_G['jameson_read']['trametitle']}</th>
	</tr>
</thead>
<tbody>
{eval $authornums = 0;}
{loop $authorall $key $author}
{eval $authornums++;}
	<tr class="hover threadopt">
		<td>{$authornums}</td>
		<td>{$author['author']}</td>
		<td>{$author['online']}</td>
		<td>{$author['authorsell']}</td>
		<td>
			<label>{lang jameson_read:jinzhifabu}<input type="radio" {if $author['status'] != 1} checked {/if} name="status[{$author['author_id']}]" value='0' /></label>
			<span class="pipe"></span>
			<label>{lang jameson_read:kefabu}<input type="radio" {if $author['status']==1} checked {/if} name="status[{$author['author_id']}]" value='1' /></label>
		</td>
		<td>
			<label>{lang jameson_read:jinzhibianji}<input type="radio" {if !$author['edit']} checked {/if} name="edit[{$author['author_id']}]" value="0" /></label>
			<span class="pipe"></span>
			<label>{lang jameson_read:kebianji}<input type="radio" {if $author['edit']} checked {/if} name="edit[{$author['author_id']}]" value="1" /></label>
		</td>
		<td>
			<label>{lang jameson_read:jinzhibianjizhangjie}
					<input type="radio" name="allowedit[{$author['author_id']}]" {if !$author['allowedit']}checked{/if}  value="0" />
			</label>
			<span class="pipe"></span>
			<label>{lang jameson_read:yunxubianjizhangjie}
					<input type="radio" name="allowedit[{$author['author_id']}]" {if $author['allowedit']}checked{/if}  value="1" />
			</label>
		</td>
		<td>
			<label for="setzgsj_{$author['author_id']}" data-wenk="{lang jameson_read:zgsjtips}">
				<input type="radio" id="setzgsj_{$author['author_id']}" name="setsj[{$author['author_id']}]" {if $author['setsj']=='zgsj'}checked{/if} value="zgsj">
				{lang jameson_read:zgsjradio}
				<input type="text" class="input-80px" name="zgsj[{$author['author_id']}]"  value="{$author['zgsj']}">
			</label>
			<span class="pipe">  </span>
			<label for="setqzsj_{$author['author_id']}"  data-wenk="{lang jameson_read:qzsjtips}">
				<input type="radio" id="setqzsj_{$author['author_id']}" name="setsj[{$author['author_id']}]" {if $author['setsj']=='qzsj'}checked{/if} value="qzsj">
				{lang jameson_read:qzsjradio}
				<input type="text" class="input-80px" name="qzsj[{$author['author_id']}]" value="{$author['qzsj']}">
			</label>
		</td>
	</tr>
{/loop}
	<tr>
		<td colspan="10">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<input id="submit_editsubmit" class="btn" type="submit" value="{lang jameson_read:tijiao}" name="editsubmit">
		</td>
	</tr>
</tbody>
</table>
</form>
<div class="margintop marginbot cl right">{$pageshow}</div>
{elseif $_GET['authortype']=='shenhe'}
	<table class="tb tb2" id="cpform">
	<thead class="">
		<tr class="header ">
			<th class="td25">{lang jameson_read:xuhao}</th>
			<th>{lang jameson_read:yonghu}</th>
			<th>{lang jameson_read:zhenshixingming}</th>
			<th>{lang jameson_read:lianxifangshi}</th>
			<th>{lang jameson_read:fuyan}</th>
			<th>{lang jameson_read:shijian}</th>
			<th>{lang jameson_read:caozuo}</th>
		</tr>
	</thead>
	<tbody>
	{if $squsers}
	{loop $squsers $key $author}
		<tr class="hover threadopt">
			<td>{eval echo ++$key;}</td>
			<td>{eval echo ($author['author']);}</td>
			<td>{eval echo ($author['xingming']);}</td>
			<td>{eval echo ($author['lianxi']);}</td>
			<td><p class="fuyan">{eval echo ($author['fuyan']);}</p></td>
			<td>{eval echo date('Y-m-d H:i',$author['addtime']);}</td>
			<td>
				<a href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=shenhe&uid={$author['uid']}&status=1&formhash={FORMHASH}">{lang jameson_read:tongguo}</a>
				<a href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=shenhe&del=1&formhash={FORMHASH}&uid={$author['uid']}">{lang jameson_read:jujue}</a>
			</td>
		</tr>
	{/loop}
	{else}
	<tr>
		<td colspan="6">{lang jameson_read:zanwujilu}</td>
	</tr>
	{/if}
	</tbody>
	</table>
{elseif $_GET['authortype']=='list'}
<table class="tb tb2" id="cpform">
	<thead class="">
		<tr class="header ">
			<th class="td25">{lang jameson_read:xuhao}</th>
			<th>{lang jameson_read:yonghu}</th>
			<th>{lang jameson_read:zhenshixingming}</th>
			<th>{lang jameson_read:lianxifangshi}</th>
			<th>{lang jameson_read:caozuo}</th>
		</tr>
	</thead>
	<tbody>
	{if $squsers}
	{loop $squsers $key $author}
		<tr class="hover threadopt">
			<td>{eval echo ++$key;}</td>
			<td>{eval echo htmlspecialchars($author['author']);}</td>
			<td>{$author['xingming']}</td>
			<td>{$author['lianxi']}</td>
			<td>
				<a href="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=shenhe&del=1&formhash={FORMHASH}&uid={$author['uid']}&authortype=list">{lang jameson_read:shanchu}</a>
			</td>
		</tr>
	{/loop}
	{else}
	<tr>
		<td colspan="3">{lang jameson_read:zanwujilu}</td>
	</tr>
	{/if}
	</tbody>
	</table>
	<div class="margintop marginbot cl right">{$pageshow}</div>
{elseif $_GET['authortype']=='fuli'}
	
	<form id="cpform" action="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mauthor&act=fuli" autocomplete="off" method="post" name="cpform">
	<script type="text/javascript" src="./static/image/editor/editor_function.js"></script>
	{eval}
	showtablerow('', array('class="td27"', 'class="td28"'), array('<textarea class="userData" name="fulitext" id="uchome-ttHtmlEditor" style="height: 100%; width: 100%; display: none; border: 0px">'.stripcslashes($fulitext['adv']).'</textarea>'));

	showtablerow('', array('class="td25"', 'class="td28"'), array(" <iframe src='home.php?mod=editor&charset=".CHARSET."&allowhtml=1&isportal=0' name='uchome-ifrHtmlEditor' id='uchome-ifrHtmlEditor'  scrolling='no' style='width:100%;height:500px;border:1px solid #C5C5C5;position:relative;' border=0 frameborder=0 ></iframe>",));  

	{/eval}
	<br><br>
	{if $fulitext}
	<input type="hidden" name="fuliid" value="{$fulitext['topic_id']}">
	{/if}
	<input type="hidden" name="formhash" value="{FORMHASH}">
	<input id="submit_editsubmit" class="btn" type="submit" value="{lang jameson_read:tijiao}" name="editsubmit" onClick='validate(this);'>
	<br>
	<script>
	function validate(obj){
	    edit_save();
	    window.onbeforeunload = null;
	    obj.form.submit();
	    return false;
	}
	_attachEvent(window,'load',noimg);
	function noimg(){
		var allhref = $("uchome-ifrHtmlEditor").contentWindow.$("dvToolbar").getElementsByTagName('a');
		for(var i=0,len=allhref.length;i<len;i++){
			if(in_array(allhref[i].getAttribute('class'),['icoFullTxt','icoSwitchTxt','icoImg'])){
				allhref[i].setAttribute('style','display:none');
			}
		}
	}
	</script>
	</form>
{/if}
<script type="text/javascript" src="./source/plugin/jameson_read/template/adm.js"></script>